package com.aiex.framework.security.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@ConfigurationProperties(prefix = "aiex.security.token")
@Component
public class SecurityTokenProperties {

    /**
     * 令牌自定义标识
     */
    private String header;
    /**
     * 令牌秘钥
     */
    private String secret;
    /**
     * 令牌有效期（默认30分钟）
     */
    private int expireTime;
    /**
     * 令牌前缀
     */
    private String tokenPrefix;
    /**
     * redis登录用户keu
     */
    private String loginUserKey;


}
